/**

 @author 石头哥哥
 </P>
 Date:   2014/12/24
 </P>
 Time:   19:36

 注解：

 */
package utils {
public interface List {

    function addLast(e:Object):void;

    function addFirst(e:Object):void;

    function pollLast():*;

    function pollFirst():*;


    /**
     *
     * @param object
     */
    function add(object:Object):void;


    function getObject(index:int):*;


    /**
     *
     * @param index
     * @return
     */
    function removeIndex(index:uint):*;

    /**
     * @param object
     * @return
     */
    function removeObject(object:Object):*;

    /**
     * list size
     * @return
     */
    function size():uint;


    /**
     *
     * @param objects
     */
    function addAll(...objects):void;


    /**
     *
     */
    function clear(dispose:Boolean = false):void;
}
}
